$OpenBSD: patch-Makefile,v 1.2 2002/05/25 21:37:45 pvalchev Exp $
--- Makefile.orig	Tue Dec 28 01:33:54 1999
+++ Makefile	Sat May 25 15:20:42 2002
@@ -12,17 +12,17 @@
 # 100% SDL Version: December 27, 1999
 
 
-DATA_PREFIX=data
+DATA_PREFIX=$(PREFIX)/share/gemdropx
 SDL_CFLAGS := $(shell sdl-config --cflags)
 SDL_LDFLAGS := $(shell sdl-config --libs)
 
 
-MIXER=-lmixer
+MIXER=-lSDL_mixer
 NOSOUNDFLAG=$(SOUND)SOUND
 JOYFLAG=$(JOY)JOYSTICK
 
 
-CFLAGS=-Wall $(SDL_CFLAGS) \
+CFLAGS+=$(SDL_CFLAGS) \
 	-DDATA_PREFIX=\"$(DATA_PREFIX)\" -D$(NOSOUNDFLAG) -D$(JOYFLAG)
 SDL_LIB=$(MIXER) $(SDL_LDFLAGS)
 
@@ -38,7 +38,7 @@ clean:
 
 
 gemdropx:	gemdropx.o
-	$(CC) $(CFLAGS) -o gemdropx gemdropx.o $(SDL_LIB)
+	$(CC) $(CFLAGS) -o gemdropx gemdropx.o $(SDL_LIB) -lm
 
 
 gemdropx.o:	gemdropx.c
